- if @diff_hunk.header
  %tr.rd-hunk-header.rd-hunk-header-inline
    %td.rd-hunk-header-buttons{ colspan: '2' }= render RapidDiffs::Viewers::Text::ExpandLinesComponent.new(directions: @diff_hunk.header.expand_directions)
    %td.rd-hunk-header-content= @diff_hunk.header.text

- if @diff_hunk.lines
  - @diff_hunk.lines.each do |line|
    - line_id = line.id(@file_hash)
    %tr.rd-hunk-lines.rd-hunk-lines-inline{ id: line_id, data: { testid: 'hunk-lines-inline', hunk_lines: true, expanded: (true if line.expanded?) } }
      = render RapidDiffs::Viewers::Text::LineNumberComponent.new(line: line, line_id: line_id, position: :old)
      = render RapidDiffs::Viewers::Text::LineNumberComponent.new(line: line, line_id: line_id, position: :new)
      = render RapidDiffs::Viewers::Text::LineContentComponent.new(line: line, position: nil)
